//
//  WalkInfo.m
//  DogLocate
//
//  Created by mac zou on 11-5-18.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "WalkInfo.h"


@implementation WalkInfo

@synthesize walkDate;
@synthesize walkCity;
@synthesize distance;
@synthesize avgSpeed;
@synthesize walkCount;
@synthesize locateArray;

- (void)encodeWithCoder:(NSCoder *)coder {
	[coder encodeObject:walkDate forKey:@"walkDate"];  
    [coder encodeObject:walkCity forKey:@"walkCity"];
	[coder encodeObject:distance forKey:@"distance"];
	[coder encodeObject:avgSpeed forKey:@"avgSpeed"];
	[coder encodeObject:walkCount forKey:@"walkCount"];
	[coder encodeObject:locateArray forKey:@"locateArray"];
}

-(id)initWithCoder:(NSCoder *)coder {
	
	if (self = [super init])  
    {  
        self.walkDate = [coder decodeObjectForKey:@"walkDate"];  
        self.walkCity = [coder decodeObjectForKey:@"walkCity"];  
		self.distance = [coder decodeObjectForKey:@"distance"];
		self.avgSpeed = [coder decodeObjectForKey:@"avgSpeed"];
		self.walkCount = [coder decodeObjectForKey:@"walkCount"];
		self.locateArray = [coder decodeObjectForKey:@"locateArray"];

    }  
    return self;  
}

@end
